package linker.list;

import javax.swing.ImageIcon;

/**
 * The interface of list item.
 * 
 * @author cox
 * 
 */
public class ListItem {

	/**
	 * The icon displayed in the list.
	 */
	private ImageIcon icon;

	/**
	 * The tip text.
	 */
	private String tipText;

	/**
	 * The title displayed in the list.
	 */
	private String title;

	/**
	 * The blank default constructer.
	 */
	public ListItem() {
	}

	/**
	 * Fired when doubleClick.
	 */
	public void doubleClick() {
	}

	/**
	 * 
	 * @return The icon displayed in the view list.
	 */
	public final ImageIcon getIcon() {
		return icon;
	}

	/**
	 * Change Imange icon.
	 * 
	 * @param paraIcon
	 *            The new ImageIcon.
	 */
	public final void setIcon(final ImageIcon paraIcon) {
		this.icon = paraIcon;
	}

	/**
	 * 
	 * @return The tip text,when mouse move on.
	 */
	public final String getTipText() {
		return tipText;
	}

	/**
	 * Change the content of TipText.
	 * 
	 * @param paraTipText
	 *            The new tip text;
	 */
	public final void setTipText(final String paraTipText) {
		this.tipText = paraTipText;
	}

	/**
	 * 
	 * @return The title displayed in the list.
	 */
	public final String getTitle() {
		return title;
	}

	/**
	 * 
	 * @param paraTitle
	 *            The new title;
	 */
	public final void setTitle(final String paraTitle) {
		this.title = paraTitle;
	}

}
